package com.funsport.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 活动接龙实体
 *
 * @author Fun-Sport Team
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("event_solitaires")
public class EventSolitaire implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 接龙记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 活动ID
     */
    private Long eventId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 接龙内容/留言
     */
    private String message;

    /**
     * 接龙状态：active-有效，cancelled-已取消
     */
    private String status;

    /**
     * 接龙时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}